import request from '@/utils/request'

// 登录接口
export const loginAPI = data => {
  return request.post('/auth/login', data)
}

// 获取管理员相关信息
export const getUserAPI = () => {
  return request.get('/auth/currentUser')
}

// 获取图表用的数据
export function getLineAPI () {
  return request({
    url: '/analysis/DailyVisitTrend'
  })
}
